home *** CD-ROM | disk | FTP | other *** search
- #ifndef dir_SOSH
- #define dir_SOSH 1
-
- #include "knl_use.h"
- #include "agg_use.h"
- class sos_String_sos_Object_Association;
- class sos_String_sos_Object_Mapping;
- class sos_Object_Directory;
- typedef class sos_Object_Directory sos_Directory;
- class sos_String_sos_Object_Association: public sos_Root_class
- { friend class _sos_Object_sos_Object_Association;
- class _sos_Object_sos_Object_Association* _ref;
- public:
- operator sos_Object ();
- operator sos_Aggregate ();
- operator sos_Object_sos_Object_Association ();
- static sos_String_sos_Object_Association make(sos_Typed_id&);
- static sos_String_sos_Object_Association make(sos_Typed_id&p,_sos_Object_sos_Object_Association*r){
- sos_String_sos_Object_Association o; o._tpid = p; o._ref=r; return o;}
- static sos_String_sos_Object_Association make(sos_Root_class&);
- sos_Offset _size();
- static sos_String_sos_Object_Association create(sos_Container,sos_Bool role1_based_on_equal = FALSE,sos_Bool role2_based_on_equal = FALSE);
- static sos_String_sos_Object_Association copy(sos_String_sos_Object_Association,sos_Container);
- static sos_String_sos_Object_Association clone(sos_String_sos_Object_Association,sos_Container);
- void destroy();
- sos_Int hash_value();
- sos_Bool is_role2(sos_Object _p1);
- sos_String get_role1(sos_Cursor _p1);
- sos_Object get_role2(sos_Cursor _p1);
- sos_Bool is_empty();
- sos_Int card();
- sos_Cursor open_cursor(sos_Container _p1 = TEMP_CONTAINER);
- void close_cursor(sos_Cursor _p1);
- sos_Cursor duplicate(sos_Cursor _p1);
- sos_Bool is_valid(sos_Cursor _p1);
- void remove_at(sos_Cursor _p1);
- sos_Bool to_first(sos_Cursor _p1);
- sos_Bool to_last(sos_Cursor _p1);
- sos_Bool to_pred(sos_Cursor _p1,sos_Int _p2 = 1);
- sos_Bool has_type(sos_Type _p1);
- sos_Bool isa(sos_Type _p1);
- sos_Bool operator==(sos_Object _p1);
- sos_Bool operator!=(sos_Object _p1);
- void assign(sos_Object source);
- sos_Bool equal(sos_Object o,sos_Eq_kind eq_kind = EQ_STRONG);
- sos_Bool is_role1(sos_String _p1);
- void clear();
- sos_Bool to_succ(sos_Cursor _p1,sos_Int _p2 = 1);
- sos_Type type();
- sos_Bool is_some(sos_Type _p1);
- sos_Bool is_value();
- sos_Int size();
- sos_Bool identical(sos_Object _p1);
- sos_Bool like(sos_Object _p1);
- sos_Comp_result compare_ids(sos_Object _p1);
- };
- #define _sos_String_sos_Object_Association_type sos_Id::make(sos_Container::make(7053596),3392)
- #define sos_String_sos_Object_Association_type sos_type_object(_sos_String_sos_Object_Association_type,sos_Id::make(sos_Container::make(279048),529560))
- class sos_String_sos_Object_Mapping: public sos_Root_class
- { friend class _sos_Object_sos_Object_Mapping;
- class _sos_Object_sos_Object_Mapping* _ref;
- public:
- operator sos_Object ();
- operator sos_Aggregate ();
- operator sos_String_sos_Object_Association ();
- operator sos_Object_sos_Object_Association ();
- operator sos_Object_sos_Object_Mapping ();
- static sos_String_sos_Object_Mapping make(sos_Typed_id&);
- static sos_String_sos_Object_Mapping make(sos_Typed_id&p,_sos_Object_sos_Object_Mapping*r){
- sos_String_sos_Object_Mapping o; o._tpid = p; o._ref=r; return o;}
- static sos_String_sos_Object_Mapping make(sos_Root_class&);
- sos_Offset _size();
- static sos_String_sos_Object_Mapping create(sos_Container,sos_Bool list_cursor = FALSE,sos_Bool key_based_on_equal = FALSE,sos_Bool info_based_on_equal = FALSE);
- static sos_String_sos_Object_Mapping copy(sos_String_sos_Object_Mapping,sos_Container);
- static sos_String_sos_Object_Mapping clone(sos_String_sos_Object_Mapping,sos_Container);
- void destroy();
- sos_Int hash_value();
- sos_Object operator[](sos_String _p1);
- sos_Object get_info(sos_Cursor _p1);
- void set_info(sos_Cursor _p1,sos_Object _p2);
- sos_Bool is_role2(sos_Object _p1);
- sos_Int card();
- sos_Cursor open_cursor(sos_Container _p1 = TEMP_CONTAINER);
- void close_cursor(sos_Cursor _p1);
- sos_Cursor duplicate(sos_Cursor _p1);
- sos_Bool to_last(sos_Cursor _p1);
- sos_Bool to_pred(sos_Cursor _p1,sos_Int _p2 = 1);
- sos_Bool is_empty();
- sos_Bool isa(sos_Type _p1);
- sos_Bool operator==(sos_Object _p1);
- sos_Bool operator!=(sos_Object _p1);
- void assign(sos_Object source);
- sos_Bool equal(sos_Object o,sos_Eq_kind eq_kind = EQ_STRONG);
- sos_Bool is_info(sos_Object _p1);
- void clear();
- void insert_after(sos_Cursor _p1,sos_String _p2,sos_Object _p3);
- sos_String get_role1(sos_Cursor _p1);
- sos_Object get_role2(sos_Cursor _p1);
- void remove_at(sos_Cursor _p1);
- sos_Bool is_valid(sos_Cursor _p1);
- sos_Bool to_first(sos_Cursor _p1);
- sos_Bool has_type(sos_Type _p1);
- sos_Bool is_key(sos_String _p1);
- void remove(sos_String _p1);
- sos_String get_key(sos_Cursor _p1);
- void move_cursor(sos_Cursor _p1,sos_String _p2);
- sos_Bool is_role1(sos_String _p1);
- sos_Bool to_succ(sos_Cursor _p1,sos_Int _p2 = 1);
- sos_Bool is_some(sos_Type _p1);
- sos_Bool is_value();
- sos_Bool identical(sos_Object _p1);
- sos_Comp_result compare_ids(sos_Object _p1);
- void insert(sos_String _p1,sos_Object _p2);
- void insert_before(sos_Cursor _p1,sos_String _p2,sos_Object _p3);
- sos_Int size();
- sos_Type type();
- sos_Bool like(sos_Object _p1);
- };
- #define _sos_String_sos_Object_Mapping_type sos_Id::make(sos_Container::make(7053596),3072)
- #define sos_String_sos_Object_Mapping_type sos_type_object(_sos_String_sos_Object_Mapping_type,sos_Id::make(sos_Container::make(279048),529560))
- class sos_Object_Directory: public sos_Root_class
- { friend class _sos_Object_Directory;
- class _sos_Object_Directory* _ref;
- public:
- operator sos_Object ();
- operator sos_Aggregate ();
- operator sos_String_sos_Object_Association ();
- operator sos_Object_sos_Object_Association ();
- operator sos_String_sos_Object_Mapping ();
- operator sos_Object_sos_Object_Mapping ();
- operator sos_Named ();
- static sos_Object_Directory make(sos_Typed_id&);
- static sos_Object_Directory make(sos_Typed_id&p,_sos_Object_Directory*r){
- sos_Object_Directory o; o._tpid = p; o._ref=r; return o;}
- static sos_Object_Directory make(sos_Root_class&);
- sos_Offset _size();
- static sos_Object_Directory create(sos_Container,sos_String name);
- static sos_Object_Directory copy(sos_Object_Directory,sos_Container);
- static sos_Object_Directory clone(sos_Object_Directory,sos_Container);
- void destroy();
- sos_Int hash_value();
- static sos_Object_Directory root();
- sos_Object operator[](sos_String _p1);
- sos_Object get_info(sos_Cursor _p1);
- void set_info(sos_Cursor _p1,sos_Object _p2);
- sos_Bool is_role2(sos_Object _p1);
- sos_Int card();
- sos_Cursor open_cursor(sos_Container _p1 = TEMP_CONTAINER);
- void close_cursor(sos_Cursor _p1);
- sos_Cursor duplicate(sos_Cursor _p1);
- sos_Bool to_last(sos_Cursor _p1);
- sos_Bool to_pred(sos_Cursor _p1,sos_Int _p2 = 1);
- sos_Bool is_empty();
- sos_Bool isa(sos_Type _p1);
- sos_Bool operator==(sos_Object _p1);
- sos_Bool operator!=(sos_Object _p1);
- protected:
- static void local_assign(sos_Object_Directory x,sos_Object_Directory y);
- static sos_Bool local_equal(sos_Object_Directory x,sos_Object_Directory y,sos_Eq_kind eq_kind = EQ_STRONG);
- public:
- void assign(sos_Object source);
- sos_Bool equal(sos_Object o,sos_Eq_kind eq_kind = EQ_STRONG);
- void insert(sos_String _p1,sos_Object _p2);
- protected:
- static void local_finalize(sos_Object_Directory _p1);
- public:
- sos_Bool is_info(sos_Object _p1);
- void clear();
- void insert_before(sos_Cursor _p1,sos_String _p2,sos_Object _p3);
- sos_Int size();
- protected:
- sos_Bool get_role1_based_on_equal();
- void set_role1_based_on_equal(sos_Bool _p1);
- sos_Bool get_role2_based_on_equal();
- void set_role2_based_on_equal(sos_Bool _p1);
- public:
- sos_Type type();
- sos_Bool like(sos_Object _p1);
- sos_String get_name();
- void set_name(sos_String _p1);
- static void set_wd_from_env();
- void insert_after(sos_Cursor _p1,sos_String _p2,sos_Object _p3);
- sos_String get_role1(sos_Cursor _p1);
- sos_Object get_role2(sos_Cursor _p1);
- void remove_at(sos_Cursor _p1);
- sos_Bool is_valid(sos_Cursor _p1);
- sos_Bool to_first(sos_Cursor _p1);
- sos_Bool has_type(sos_Type _p1);
- void remove(sos_String _p1);
- static sos_Object lookup(sos_String _p1);
- static void set_wd(sos_String _p1);
- static sos_Object_Directory get_wd();
- protected:
- static void local_initialize(sos_Object_Directory _p1);
- public:
- sos_Bool is_key(sos_String _p1);
- sos_String get_key(sos_Cursor _p1);
- void move_cursor(sos_Cursor _p1,sos_String _p2);
- sos_Bool is_role1(sos_String _p1);
- sos_Bool to_succ(sos_Cursor _p1,sos_Int _p2 = 1);
- sos_Bool is_some(sos_Type _p1);
- sos_Bool is_value();
- sos_Bool identical(sos_Object _p1);
- sos_Comp_result compare_ids(sos_Object _p1);
- protected:
- static sos_Int local_hash_value(sos_Object_Directory x);
- };
- #define _sos_Object_Directory_type sos_Id::make(sos_Container::make(7053596),1288)
- #define sos_Object_Directory_type sos_type_object(_sos_Object_Directory_type,sos_Id::make(sos_Container::make(279048),529560))
- #define _sos_Directory_type sos_Id::make(sos_Container::make(7053596),1288)
- #define sos_Directory_type sos_type_object(_sos_Directory_type,sos_Id::make(sos_Container::make(279048),529560))
- #endif
-